package org.example.est.service.impl;

import org.example.est.dao.MaintainOrderFlowDao;
import org.example.est.entity.MaintainOrderFlow;
import org.example.est.constants.Constants;
import org.example.est.service.MaintainOrderFlowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class MaintainOrderFlowServiceImpl implements MaintainOrderFlowService {

    @Autowired
    private MaintainOrderFlowDao maintainOrderFlowDao;
    @Override
    public int addMaintainOrderFlow(MaintainOrderFlow flow) {
        flow.setCreatedtime(new Date());
        flow.setIsdelete(Constants.EST_NOT);
        return maintainOrderFlowDao.insert(flow);
    }
}
